<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="cf" uri="http://kyub.com/jsp/jstl/functions" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib prefix="gears" uri="http://kyub.com/jsp/jstl/crud" %>


<c:set var="template" value="classic"/>
<c:if test="${not empty pageContext.request.parameterMap.backPojo[0]}">
    <c:set var="template" value="popup"/>
</c:if>


<tiles:insertTemplate template="/tiles/${template}.jsp">

    <tiles:putAttribute name="scripts">
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/thickbox.js"></script>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/css/thickbox.css" type="text/css"
              media="screen"/>

    </tiles:putAttribute>
    <tiles:putAttribute name="body">
      
      <gears:view pojoDescriptor="${pojoDescriptor}" pojo="${pojo}" gears_restfull_prefix="${gears_restfull_prefix}" />

    </tiles:putAttribute>
</tiles:insertTemplate>